package com.lwm.mapper;

import com.lwm.domain.ReplenishmentApproval;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * 补货申请表(ReplenishmentApproval)表数据库访问层
 *
 * @author lzl
 * @since 2023-10-17 18:11:13
 */
public interface ReplenishmentApprovalMapper {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    @Select("select * from replenishment_approval where id = #{id} and is_deleted = 0;")
    ReplenishmentApproval getById(Long id);


    /**
     * 获取页面
     *
     * @param replenishmentApproval 补货批准
     */
    List<ReplenishmentApproval> getPage(ReplenishmentApproval replenishmentApproval);

    /**
     * 修改
     *
     * @param replenishmentApproval 补货批准
     */
    void update(ReplenishmentApproval replenishmentApproval);
}

